<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改首页图片</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<link href="/res/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/jquery.js"></script>
<script type="text/javascript" src="/res/js/select-ui.min.js"></script>
<script type="text/javascript" src="/res/js/lib/formvalid/FormValid.js"></script>
<link href="/res/js/lib/layer/skin/layer.css" rel="stylesheet" type="text/css" />
<link href="/res/js/lib/layer/skin/layer.ext.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/res/js/lib/layer/layer.js"></script>
<script type="text/javascript" src="/res/js/common/msgTools.js"></script>
<script type="text/javascript" src="/res/js/pages/merchant/showImageAdd.js"></script>
<style type="text/css">
 td{padding: 5px;}
</style>

<script type="text/javascript">
	$(document).ready(function(e) {
		$("select").uedSelect({});
	});
</script>

</head>

<body style="overflow-x:hidden;">
	<div class="formbody">

		<form action="/merchant/showimage/add/save" method="post" enctype="multipart/form-data" onsubmit="return checkData(this)">
			<div id="tab1" class="tabson">
			    <table class="table-img">
			       <tr>
			         <td>选择商家</td>
			         <td>
			            <input id='merchantName' type="text" readonly="readonly" value="" class="dfinput" style="width:150px;background: #efefef!important;" />&nbsp;&nbsp;<input id="btnSelMerchant" type="button" class="cbtn" value="选择..." />
			            <input id='merchantId' name="merchantId" type="hidden" value="" width="160" />
			         </td>
			       </tr>
			       <tr>
			         <td>显示顺序</td>
			         <td><input id="txtSort" name="sort" value="${ming.sort}" type="text" valid="isNumber"   class="dfinput" style="width:150px;" ></input>
					    <img id="imgValid" src="" alt="" class="hide"/>
					    <span id="errMsg_sort" class="errMsg">请输入数字</span>
			         </td>
			       </tr>			       
			       <tr>
			          <td valign="top">选择图片</td>
			          <td valign="top">					    
			            <input type="file" name="upimg" class="dfinput" style="width:350px;margin-bottom:5px;"/><br/>
					    <c:if test="${!empty(mimg.url)}">
					       <label>&nbsp;</label><a href="${mimg.url}" target="_blank"><img src="${mimg.url}" width="430" height="260" /></a><br/>
					    </c:if>
					    
					    <center style="margin-top:20px;"><input type="submit" class="btn" value="添 加" /></center>
			          </td>
			       </tr>			       			       			       
			    </table>				
				
			</div>
		</form>
	</div>
	${actionMsg}
</body>

</html>


